//
//  BQShopStoreUp.m
//  BeeQuick
//
//  Created by GuoDeJin on 2016/11/22.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import "BQShopStoreUp.h"

@interface BQShopStoreUp ()

@end

@implementation BQShopStoreUp

- (void)viewDidLoad {
    [super viewDidLoad];

    [self setupUI];
}


-(void)setupUI{
    
    self.view.backgroundColor = [UIColor cz_colorWithRed:245 green:245 blue:245];
    
    
    UIImageView *shopImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"v2_store_empty"]];
    [self.view addSubview:shopImage];
    
    
    UILabel *shopLabel = [UILabel cz_labelWithText:@"没有收藏店铺" fontSize:14 color:[UIColor grayColor]];
    shopLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:shopLabel];

    
    [shopImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.centerY.equalTo(self.view).offset(-50);
        make.width.height.offset(90);
    }];
    
    [shopLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.offset(0);
        make.top.equalTo(shopImage.mas_bottom).offset(20);
    }];
    
    
    //自定义导航条返回按钮
    UIBarButtonItem *barButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"v2_goback"] style:UIBarButtonItemStylePlain target:self action:@selector(buttonOF)];
   
    
    self.navigationItem.leftBarButtonItem = barButtonItem;

    
}

- (void)buttonOF{
    
    
    [self.navigationController popViewControllerAnimated:YES];
    
}


//视图将要被移除   显示tabbar
- (void)viewWillDisappear:(BOOL)animated{
    
    [super viewWillDisappear:animated];
    self.tabBarController.tabBar.hidden = NO;
    
    
}
//视图将要显示  隐藏tabbar
- (void)viewWillAppear:(BOOL)animated{
    
    [super viewWillAppear:animated];
    
    self.tabBarController.tabBar.hidden = YES;
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
